<script>
	export default {
		globalData: {
			//自定义导航高度
			customBar: 0,
			//状态栏的高度
			statusBar: 0
		},
		onLaunch() {
			let that = this;
			uni.getSystemInfo({
				success: function(e) {
					that.globalData.statusBar = e.statusBarHeight;
					//获取胶囊信息
					let custom = uni.getMenuButtonBoundingClientRect()
					that.globalData.customBar = custom.bottom + custom.top - e.statusBarHeight;
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
</style>